package com.wontube.smr.dao.mapper.web;

import com.wontube.core.dao.mybatis.QueryExample;
import com.wontube.smr.client.model.po.Movie;
import com.wontube.smr.dao.providers.MovieSqlProvider;
import com.wontube.smr.web.client.model.po.BlogTag;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.session.RowBounds;

public interface BlogTagMapper {

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table blog_tag
	 * @mbggenerated
	 */
	int countByExample(QueryExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table blog_tag
	 * @mbggenerated
	 */
	int deleteByExample(QueryExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table blog_tag
	 * @mbggenerated
	 */
	int deleteByPrimaryKey(String id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table blog_tag
	 * @mbggenerated
	 */
	int insert(BlogTag record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table blog_tag
	 * @mbggenerated
	 */
	int insertSelective(BlogTag record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table blog_tag
	 * @mbggenerated
	 */
	List<BlogTag> selectByExample(QueryExample example, RowBounds rowBounds);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table blog_tag
	 * @mbggenerated
	 */
	List<BlogTag> selectByExample(QueryExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table blog_tag
	 * @mbggenerated
	 */
	BlogTag selectByPrimaryKey(String id);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table blog_tag
	 * @mbggenerated
	 */
	int updateByExampleSelective(@Param("record") BlogTag record,
			@Param("example") QueryExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table blog_tag
	 * @mbggenerated
	 */
	int updateByExample(@Param("record") BlogTag record,
			@Param("example") QueryExample example);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table blog_tag
	 * @mbggenerated
	 */
	int updateByPrimaryKeySelective(BlogTag record);

	/**
	 * This method was generated by MyBatis Generator. This method corresponds to the database table blog_tag
	 * @mbggenerated
	 */
	int updateByPrimaryKey(BlogTag record);
	
	
	@SelectProvider(type = MovieSqlProvider.class, method = "selectWithWeek")
	@ResultMap("BaseResultMap")
	List<Movie> selectWithWeek(QueryExample example, RowBounds rowBounds);
}